package com.stone.sys.pojo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "SYS_BZ_USER")
public class TBzUser implements java.io.Serializable {

    // Fields

    private Long id;

    private String username;

    private Long usertype;
    
    /**
     * 1:工作负责人　２许可人　３两者都是
     */
    private String userstate = "2";
    
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_BZ_USER")
    @SequenceGenerator(name="SEQ_BZ_USER",allocationSize=1, sequenceName="SEQ_SYS")
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Long getUsertype() {
		return usertype;
	}

	public void setUsertype(Long usertype) {
		this.usertype = usertype;
	}

	public String getUserstate() {
		return userstate;
	}

	public void setUserstate(String userstate) {
		this.userstate = userstate;
	}
    
	
    
}